﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Negocio;

namespace Presentación
{
    public partial class MenuJugar : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            GrillaNegocio grillaNegocio = new GrillaNegocio();

            GrillasListView.DataSource = grillaNegocio.ObtenerTodas();
            GrillasListView.DataBind();
        }

        protected void GrillasListView_ItemCommand(object sender, ListViewCommandEventArgs e)
        {
            if (e.CommandName == "comandoJugar")
            {
                Response.Redirect("Jugar.aspx?idGrilla=" + e.CommandArgument);
            }
        }
    }
}